<%@ Page Language="c#" AutoEventWireup="true" MasterPageFile="~/App_MasterPages/Oceania.Master" CodeFile="LoginRole.aspx.cs" Inherits="_LoginRole" Title="LoginRole" %>

<asp:Content ID="Main" ContentPlaceHolderID="mainContent" runat="server">
	<fieldset>
		<legend>LoginRole Detail</legend>
		<asp:GridView ID="LoginRoleGrid" AllowPaging="True" AllowSorting="True" BorderColor="White"
			BorderStyle="Ridge" CellSpacing="0" CellPadding="3" BackColor="#ffffff" AutoGenerateColumns="false"
			DataSourceID="LoginRoleSource" runat="server" Width="600px" EnableSortingAndPagingCallbacks="True">
			<HeaderStyle BackColor="#ffffff" HorizontalAlign="left" Font-Bold="true" />
			<AlternatingRowStyle BackColor="#CCCC99" />
			<PagerSettings Mode="NumericFirstLast" Position="Bottom" />
			<Columns>
				<asp:HyperLinkField HeaderText="ID" DataTextField="Id" SortExpression="Id" DataNavigateUrlFields="Id"
				DataNavigateUrlFormatString="~/SampleForms/LoginRole.aspx?LoginRoleId={0}" Target="_parent" />
			</Columns>
		</asp:GridView>
	</fieldset>
    <asp:FormView ID="loginRoleView" DataSourceID="loginRoleDetailSource" DataKeyNames="Id" runat="server">
        <ItemTemplate>
			 <fieldset>
				<legend>LoginRole Detail</legend>
				<ol>
				<li>
				<asp:Label ID="idLabel" Text="Id" runat="server"/>
				<asp:Label ID="id" Text='<%# Eval("Id") %>' CssClass="formText" runat="server" />
				</li>
			    </ol>
			 </fieldset>
			 <asp:Button ID="add" CommandName="New" Text="Add" runat="server" />
			 <asp:Button ID="edit" CommandName="Edit" Text="Edit" runat="server" />
			 <asp:Button ID="delete" CommandName="Delete" Text="Delete" runat="server" />
		</ItemTemplate>
		<InsertItemTemplate>
			 <fieldset>
				<legend>New LoginRole Detail</legend>
				<ol>
				</ol>
			 </fieldset>
             <asp:Button ID="submit" CommandName="Insert" Text="Save" runat="server" />
        </InsertItemTemplate>
		<EditItemTemplate>
			<fieldset>
				<legend>Edit LoginRole Detail</legend>
				<ol>
				<li>
				<asp:Label ID="idLabel" Text="Id" runat="server"/>
				<asp:Label Id="id" Text='<%# Bind("Id") %>' CssClass="formText" runat="server" />
				</li>
				</ol>
			 </fieldset>
             <asp:Button ID="submit" CommandName="Update" Text="Save" runat="server" />
        </EditItemTemplate>
		<EmptyDataTemplate>
				<fieldset>
				<legend>LoginRole Detail</legend>
				No Record Selected
				</fieldset>
			<asp:Button ID="add" CommandName="New" Text="Add" runat="server" />
		</EmptyDataTemplate>
    </asp:FormView>
	<asp:ObjectDataSource ID="LoginRoleSource" TypeName="Blog.Net.Blog.Net.DataAccess.DataControls.LoginRoleDataControl"
		DataObjectTypeName="Blog.Net.Blog.Net.Business.BusinessObjects.LoginRoleBO" SelectMethod="GetAll" SelectCountMethod="GetCountOfAll"
		InsertMethod="Save" UpdateMethod="Save" MaximumRowsParameterName="maxResults" StartRowIndexParameterName="firstResult"
		SortParameterName="sortExpression" EnablePaging="True" runat="server" >
		<InsertParameters>
            <asp:Parameter Name="loginRole" Type="Object" />
            <asp:Parameter Direction="Output" Name="id" Type="Object" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="loginRole" Type="Object" />
            <asp:Parameter Direction="Output" Name="id" Type="Object" />
        </UpdateParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="loginRoleDetailSource" SelectMethod="GetById" InsertMethod="Save" UpdateMethod="Save" DeleteMethod="Delete" DataObjectTypeName="Blog.Net.Blog.Net.Business.BusinessObjects.LoginRoleBO"
        TypeName="Blog.Net.Blog.Net.DataAccess.DataControls.LoginRoleDataControl" runat="server">
		<SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="LoginRoleId" Type="Int32" />
        </SelectParameters>
		<InsertParameters>
            <asp:Parameter Name="loginRole" Type="Object" />
            <asp:Parameter Direction="Output" Name="id" Type="Object" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="loginRole" Type="Object" />
            <asp:Parameter Direction="Output" Name="id" Type="Object" />
        </UpdateParameters>
		<DeleteParameters>
            <asp:Parameter Name="loginRole" Type="Object" />
        </DeleteParameters>
    </asp:ObjectDataSource>
</asp:Content>